<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .a {
            width: 332px;
            height: 474px;
            background: url("1.png");
            animation: aa 1s steps(2) infinite;
        }
        .b {
            width: calc(494px/6);
            height: 125px;
            background: url("2.png");
            animation: ab .2s steps(6) infinite;
        }
        
        .c {
            
        }

        .c img {
            width: 500px;
        }
        @keyframes aa {
            100% {
                background-position:-664px;
            }
        }

        @keyframes ab {
            100% {
                background-position:-494px;
            }
        }
    </style>
</head>
<body>
<div class="a"></div>
<div class="b"></div>
<div class="c">
    <img src="img3.jpg" alt="">
</div>
</body>
</html>